//
//  ITSGetImageForButtonOperation.h
//  AsiaScene
//
//  Created by Rainbow on 3/18/11.
//  Copyright 2011 iTotemStudio. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ImageButton.h"

@interface ITSGetImageForButtonOperation : NSOperation {
	ImageButton *button;	
    NSString *_imageUrl;
	NSString *_imageName;
}

@property (nonatomic, retain)ImageButton *button;
@property (nonatomic, retain)NSString *_imageUrl;
@property (nonatomic, retain)NSString *_imageName;

/*the nameToSave format should be image_category_image1.png , then the image will save in Documents/image/category/image1.png */
-(id)initWithButton:(ImageButton *)abutton imageUrl:(NSString *)url nameToSave:(NSString *)name;  

-(id)initWithButton:(ImageButton *)abutton imageUrl:(NSString *)url;

@end
